package com.whd.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@TableName("owner")
@Data
public class Owner {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String address;
    private String phoneNumber;
    private String password;
    //@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthDate;
    private String sex;
    private Integer role;
    private String avatar;

}
